package com.qiniuyun.threedgenerator.controller;

import com.qiniuyun.threedgenerator.dto.TextGenerationRequest;
import jakarta.validation.Valid;  // 同样使用jakarta包
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/text-generation")
public class TextGenerationController {

    @PostMapping
    public ResponseEntity<?> generateText(@Valid @RequestBody TextGenerationRequest request) {
        // 业务逻辑
        return ResponseEntity.ok("生成成功");
    }
}